<cfcomponent displayname="Application" output="yes">
<cfset THIS.name = "cf_app">
<cfset THIS.ApplicationTimeout = #CreateTimeSpan( 0, 1, 0, 0 )#>
<cfset THIS.SessionTimeout = #CreateTimeSpan( 1, 0, 0, 0 )#>
<cfset THIS.SessionManagement = "True">
<cfset THIS.ClientManagement = "True">
<cfset THIS.SetClientCookies = "True">
<cfset THIS.customtagpaths = "#expandpath('/')#/customtags">
<cfset THIS.scriptProtect = "None">
<cfsetting requesttimeout="1000">
<cffunction name="OnRequestStart" access="public" returntype="void"	output="yes">
<cfargument	name="TargetPage" type="string" required=true>
<cfinclude template = "includes/loadconfigs.cfm">
<cfset THIS.mappings["/cfcs"] = "#request.basepath#cfcs">
<cfset THIS.mappings["/cfcs/admin"] = "#request.adminpath#cfcs">
<cfinclude template="header.cfm">
</cffunction>
<cffunction	name="OnRequest" access="public" returntype="void" output="yes">
  <cfargument name="TargetPage" type="string" required=true>
  <cfinclude template="#ARGUMENTS.TargetPage#">
</cffunction>
<cffunction	name="OnRequestEnd"	access="public"	returntype="void" output="yes">
<cfinclude template="footer.cfm">
</cffunction>
<cffunction	name="OnError" access="public" returntype="void" output="yes">
  <cfargument name="Exception" type="any" required="yes">
  <cfargument name="EventName" type="string" required="no" default="">
  <cfset cfcatch = Exception>
  <cfinclude template = "#request.absolutepath#errorprocess.cfm" />
</cffunction>
<cffunction name="onMissingTemplate" returnType="boolean">
  <cfargument type="string" name="targetPage" required=true>
  <cfinclude template = "includes/loadconfigs.cfm">
  <cflocation url="#request.absolutepath#notfound.cfm">
  <cfreturn BooleanValue />
</cffunction>
</cfcomponent>
